﻿using System;
using System.Web;

namespace ChapterX.Model
{
    public class PageBase : System.Web.UI.Page
    {
        public void ClearMessages()
        {
            if (this.Master != null && this.Master is MasterBase)
            {
                (this.Master as MasterBase).ClearMessages();
            }
        }

        public void SetInfoMessage(String message)
        {
            if (this.Master != null && this.Master is MasterBase)
            {
                (this.Master as MasterBase).SetInfoMessage(message);
            }
        }

        public void SetErrorMessage(String message)
        {
            if (this.Master != null && this.Master is MasterBase)
            {
                (this.Master as MasterBase).SetErrorMessage(message);
            }
        }
    }
}

